package com.xneure.code.upload;

import java.util.HashMap;
import java.util.Map;

public class FileUploadParam {
	private String fileName;
	private String verifyCode;
	private long size;
	private long currPlace;
	private String handieID;
	private Map<String, String> paraMap;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String name) {
		this.fileName = name;
	}

	public long getSize() {
		return size;
	}

	public String getHandieID() {
		return handieID;
	}

	public void setHandieID(String handieID) {
		this.handieID = handieID;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public long getCurrPlace() {
		return currPlace;
	}

	public void setCurrPlace(long currPlace) {
		this.currPlace = currPlace;
	}

	public Map<String, String> getParaMap() {
		return paraMap;
	}

	public void setParaMap(Map<String, String> paraMap) {
		this.paraMap = paraMap;
	}

	public void addParam(String key, String val) {
		if (null == paraMap) {
			paraMap = new HashMap<String, String>(10);
		}
		paraMap.put(key, val);
	}

	public boolean checkParam(String paramKey) {
		return this.paraMap.containsKey(paramKey);
	}

	public String getParamValue(String paramKey) {
		return this.paraMap.get(paramKey);
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String vc) {
		this.verifyCode = vc;
	}

}
